<div class="threadlist4">
<!--{if $list}-->
<script>
			 	function recommendv(n,objv){
					if(getcookie('recommend')) {						
					
						
						var parseval = parseInt($(objv).children("em").html()) + 1;			
						$(objv).children("em").html(parseval);
						
						
						setTimeout(function () {
							$('#recommentc').html(parseInt($('#recommentc').html()) + n) ;
							$('#recommentv').hide();
						}, 1000);
						setcookie('recommend', '');
						}
			 }
			 
				 var recommendupdate = {
				init : function() {
					$(document).on('click', '.recommend', function() {
						var obj = $(this);
						popup.open('<img src="' + IMGDIR + '/imageloading.gif">');
						$.ajax({
							type : 'GET',
							url : obj.attr('href') + '&inajax=1',
							dataType : 'xml'
						})
						.success(function(s) {
							
							recommendv({$_G['group']['allowrecommend']},obj);
							popup.open(s.lastChild.firstChild.nodeValue);							
							evalscript(s.lastChild.firstChild.nodeValue);
							
						})
						.error(function() {
							window.location.href = obj.attr('href');
							popup.close();
						});
						return false;
					});
				},
			
			};			
			recommendupdate.init();
</script>	
<ul>	<!-- more pagelist start -->
    	<!--{loop $list $key $thread}-->
        <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
			<!--{eval $thread[tid]=$thread[closed];}-->
		<!--{/if}-->
		<!--{eval $attachlist = get_threadpic($thread[tid],3,260,260);}-->

        <li>
		<!--{hook/forumdisplay_thread_mobile $key}-->
		<a href="forum.php?mod=viewthread&tid=$thread[tid]&fromguid=hot&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra">
			<div class="top">
				<div class="avatar">
					<!--{if $thread['authorid'] && $thread['author']}-->
                    	<img src="<!--{avatar($thread[authorid], small, true)}-->">
                        <!--{else}-->
                        <img src="<!--{avatar(0, small, true)}-->">
                    <!--{/if}-->
				</div>
				<p>
					<em class="typename"><!--{eval echo returntypenmae($thread);}--></em>
                    <!--{if $thread['authorid'] && $thread['author']}-->
                        <span class="username">$thread[author]</span>
                    <!--{else}-->
						<span class="username">$_G[setting][anonymoustext]</span>
					<!--{/if}-->
                        <span class="datetime">$thread[dateline]</span>   
						
                </p>
			</div>
			<div class="middle">
            
				
				<h3>
				{$thread[subject]}</h3>
                <div class="piclist">
				<!--{loop $attachlist $attach}-->
					<p><img class="imgdelay" src="./template/strong_a1/touch/images/b.jpg" data="$attach"></p>				
                <!--{/loop}-->                                                         
                </div>
			
			</div>
		</a>
			
			<div class="bottom">
				<a class="replies recommend" href="forum.php?mod=misc&action=recommend&do=add&tid=$thread[tid]&hash={FORMHASH}"  >
					
                    <i class="fa fa-thumbs-up fa-1x "></i><em>{$thread[recommend_add]}</em>
					
                </a>  
				<span class="">
					<i class="fa fa-comments-o fa-1x mbl10"></i><em>{$thread[replies]}</em>
				</span>
				<span class="">
					<i class="fa fa-eye fa-1x mbl10"></i><em>{$thread[views]}</em>
				</span>
			</div>
			
		</li>							
		<!--{/loop}-->	
		<!-- more pagelist end -->		
        <div id="ajaxlist"></div>		
	</ul>
</div>
<!--{else}-->
	<p class="no_data">{lang guide_nothreads}</p>
<!--{/if}-->

